/*
day309 
2020.7.2 
*/ 
#include<iostream>
#include<vector>
using namespace std;

class Solution {
public:
    int findTheDistanceValue(vector<int>& arr1, vector<int>& arr2, int d) {
    	int res=0;
        for(int i=0;i<arr1.size();++i)
        {
        	int flag=0; 
        	for(int j=0;j<arr2.size();++j)
        	{
        		if(abs(arr1[i]-arr2[j])<=d)
        		{
        			flag=1;
        			break;
				}
			}
			if(flag==0)
			{
				res++;
			}
		}
		
		return res;
    }
};

int main()
{
	return 0;
 } 
